#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>


int main()
{
	int a = 0;
	printf("%d\n", ~a);//按位取反   
	return 0;

}




int main()
{
	int a = 10;
	int b = ++a;//前置++，先++，后使用
	printf("%d\n", b);//11
	printf("%d\n", a);//11
	return 0;
}



int main()
{
	int a = 10;
	int b = a++;//后置++，先使用，后++
	printf("%d\n", b);//10
	printf("%d\n", a);//11
	return 0;
}



int main()
{
	//强制类型转换
	int a = (int) 3.14;
	printf("%d\n", a);
	return 0;
}



int main()
{
	int a = 0;
	int b = 3;
int max = 0;
	//if (a > b)
	//	max = a;
	//else
	max = b;//可以用条件操作符来替换
	max = a > b ? a : b;
	printf("%d\n", max);

	return 0;
}



int main()
{
	int arr[10] = { 1,2,3,4,5,6,7,8,9,10 };
	printf("%d\n", arr[5]);//C语言的下标都是从0开始的，所以arr[5】=6，
	return 0;
}
